package com.uranus.api;

import com.uranus.common.util.DateUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@Api(description="test-api接口")
@RestController
public class TestApi {


    @GetMapping("testApi")
    @ApiOperation(value="api的方法")
    public String testApi(){
        System.out.println("=========================="+DateUtils.dateToStr(new Date()));
        return "this is uranus api";
    }
}
